/**
 * 链接去掉参数
 */
const UrlClearFormat = (url: string) => {
  if (url && url.indexOf('?') > 0) {
    return url.split('?')[0]
  }
  return url
}

export { UrlClearFormat }
